<?php
include("conn/conn.php");
 include("header.php");
	$telphone=$_SESSION["telphone"];
 	$sql=mysql_query("select * from tb_user where tel=".$telphone,$conn);
	$user=mysql_fetch_array($sql);

?>
	<!-- 内容 -->
	<div id="content">
		<!-- 在线客服 -->
		
<!-- 在线客服 -->
<div style="position: fixed; left: 1213px; top: 100px;" id="chatContent">
	<div id="chatOnline">
		<div looyu_bound="1" style="cursor: pointer;" id="chatOn_support"></div>
		<div id="chatOn_close"></div>
	</div>
	<div id="chatOffline">
		<div id="chatOfflineBtn">
			<div id="chatOff_support"></div>
			<div id="chatOff_close"></div>
		</div>
		<div id="chatOfflineTip"></div>
	</div>
</div>
		<div class="login_content">
		  <div class="login_content_top"></div>
		  <div class="login_content_main">
		  <form id="signForm" action="login_submit.php" method="post">
		        

<div class="address_manage">
	<!-- 用户欢迎栏 -->
	
	
		<p class="title_span">请填写以下送餐信息</p>
	

	<!-- 用户信息栏 -->
	<table class=" info_table" border="1" width="100%">
		
			
					<tbody><tr>
						<td style="width: 120px;"><span class="span_1">电子邮箱：</span></td>
						
						<td>

						<input id="email" value="<?php echo $user['email']; ?>" class="inputText inputW0" name="email" style="*margin:0 0 0 -6px;" maxlength="50" type="text">

							</td>
						<td>&nbsp;</td>
					</tr>
				
				
		
		
		<tr>
			<td><span class="span_1">顾客姓名：</span></td>
			<td>

				
				<span> 
					<input value="<?php echo $user['truename']; ?>" style="color: rgb(173, 173, 173);" id="username" name="username" class="input_2" maxlength="24" type="text"> 
					<label> 
						<input name="gender" value="0" type="radio" checked="checked"> 男
					</label> <label class="ml5px"> 
						<input name="gender" value="1" type="radio"> 女
					</label> 
					
					</span>
				</td>
			<td>&nbsp;</td>
		</tr>
		

		<!-- 联系方式 -->
		<tr>
			<td style="width: 120px;"><span class="span_1">联系电话：</span></td>
			<td colspan="2">
				<input value="<?php echo $telphone;?>" style="color: rgb(173, 173, 173);" id="telphone" name="telphone" class="input_2" maxlength="24" type="text"> 
			</td>
		</tr>
		<tr>
			<td><span class="span_1">送餐地址：</span></td>
			<td colspan="2">
				<!--添加送餐地址开始-->

				<div id="addAddress" style="display: block; position: relative; height: 100px; z-index:1;">
					<div class="fl_l">
						<table class="info_table_1" border="1" width="100%">
							<tbody><tr>
								<td colspan="4" style="border: none;">
								<div class="add_address">
										<p>
											<span class="add_address_span">送餐城市：</span>
				                        	<input value="<?php echo $user['city']; ?>" id="address1" name="chengshi" style="width: 80px; color: rgb(173, 173, 173);" class="input_3" autocomplete="off" type="text">
				                        	<span style="margin:0 0 0 10px;"class="add_address_span">路名/小区名：</span>
				                        	<input value="<?php echo $user['area']; ?>" id="address2" name="xiaoqu" style="width: 188px; color: rgb(173, 173, 173);" class="input_4" autocomplete="off" type="text">
		                      			</p>
										
										<p>
											<span class="add_address_span">请继续填全：</span> 
											<input value="<?php echo $user['dizhi']; ?>" style="color: rgb(173, 173, 173);" id="address3" name="address" maxlength="61" class="input_3" autocomplete="off" type="text">
										</p>

										</div>
										</td>
							</tr>
						</tbody></table>
					</div>
					<div class="newtip">
						<span>友情提示：</span>
						<ul>
							<li style="color:#f00;">此处仅支持中文输入地址， 请您谅解;</li>
							<li>请正确填写送餐城市、路名/小区名，我们将以此判断是否在送餐范围内；</li>
							<li>检查输入的地址是否含空格、错别字、标点符号(括号除外)等。</li>
						</ul>
					</div>
					<div class="clear"></div>
				</div> <!--添加送餐地址结束--> <!--送餐地址开始-->

			</td>

		</tr> 

		<tr>
			<td>&nbsp;</td>
			<td colspan="2" style="text-align: left;">
				<div style="border:0;margin:0 0 0 260px;cursor:pointer;"><img id="nextStep" src="kfc_files/btn_3.png"></div>
			</td>
		</tr>
	</tbody></table>
</div>
		     </form>
		  </div>
		   <div class="login_content_btm"></div>
		</div>
	</div>
	<!-- 版权信息 -->
	




<script type="text/javascript">
$(function() {
	$("#nextStep").click(function(){
		var tel=$("#telphone").val();
		var email=$("#email").val();
		var username = $("#username").val();

		var chengshi=$("#address1").val();
		var xiaoqu=$("#address2").val();
		var dizhi = $("#address3").val();

		if(!tel){
			alert("请输入手机号");
			return false;
		}
		if(!email){
			alert("请输入邮箱地址");
			return false;
		}
		if(!username){
			alert("请输入您的名字");
			return false;
		}
		if(!chengshi){
			alert("请输入城市地址");
			return false;
		}
		if(!xiaoqu){
			alert("请输入小区地址");
			return false;
		}

		if(!dizhi){
			alert("请输入详细地址");
			return false;
		}
		$("#signForm").submit();

	});
});
</script>

<?php include("footer.php");?>